FROM java:8
MAINTAINER bingo
ADD target/oauth-1.0.0.jar oauth-1.0.0.jar
### 设置所属时区
#ENV TZ=Asia/Shanghai
### 创建本地和容器的连接
#RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
EXPOSE 9001
ENTRYPOINT ["java","-jar","oauth-1.0.0.jar"]
